<h2>Install Java</h2>

<p>
    Download an appropriate JDK for your operating system. The latest JDK can be downloaded from the official
    <a id="jdk-download-link" target="_blank" href="http://jdk.java.net/11/">OpenJDK</a> website.
</p>

<p>
    Once installed, you can use the
    <kbd>java</kbd> command from your command line.
</p>

<p>Check if the correct java version is installed. The following shows the output for OpenJDK 15:</p>

<pre><code>
$ java -version
openjdk version "15" 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
</code></pre>

<p>
    You need to set the <b>JAVA_HOME</b> environment variable to the JDK installation directory. You can follow 
    <a href="http://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux" target="_blank">this guide</a> to set JAVA_HOME for your platform.
</p>

<div class="alert alert-warning">
    <strong>Note: </strong>
    If your system has multiple versions of JDK installed, you need to make sure that the <kbd>JAVA_HOME</kbd>
    environment variable points to correct JDK. JavaFX <span class="JFX_MAJOR">11</span> needs at least JDK 11.
</div>